package br.inf.mfpo.fra4and.exemplo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import br.inf.mfpo.fra4and.R;
import br.inf.mfpo.fra4and.exemplo.columns.PessoasColumns;

public class MainActivity extends Activity {
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.example_main);

		Button inicio = (Button) findViewById(R.id.button1);

		inicio.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				// o Fra4And é baseado em intent filters, actions e mime types
				// vide AndroidManifest.xml
				Intent intent = new Intent(Intent.ACTION_VIEW, PessoasColumns.CONTENT_URI);
				startActivity(intent);
			}
		});
	}
}
